package com.example.saifly.Model;

import java.util.Date;

public class DailyPlanBg implements Comparable<DailyPlanBg>{
    private Integer planId;
    private String content;
    private Date time;
    private String patientPhone;

    //空的构造函数不能丢，不然无法接受后端传过来的数据
    public DailyPlanBg() {
    }

    public DailyPlanBg(Integer planId, String content, Date time, String patientPhone) {
        this.planId = planId;
        this.content = content;
        this.time = time;
        this.patientPhone = patientPhone;
    }

    public Integer getPlanId() {
        return planId;
    }

    public void setPlanId(Integer planId) {
        this.planId = planId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getPatientPhone() {
        return patientPhone;
    }

    public void setPatientPhone(String patientPhone) {
        this.patientPhone = patientPhone;
    }

    @Override
    public int compareTo(DailyPlanBg o) {
        return this.time.compareTo(o.time);
    }
}
